import java.awt.BorderLayout;
import java.util.GregorianCalendar;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;


public class Main {
	public static void main(String[] args){
		JFrame frame = new JFrame("FrameDemo");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		JPanel contentPane = new JPanel(new BorderLayout());
		JTextField textField = new JTextField(20);
		GregorianCalendar calendar = new GregorianCalendar();
		JLabel label = new JLabel(calendar.getTime().toString());
		frame.getContentPane().add(textField, BorderLayout.PAGE_START);
		frame.getContentPane().add(label, BorderLayout.AFTER_LAST_LINE);
		frame.pack();
		frame.setVisible(true);
	}

}
